home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
byt85mar.lbr
/
PAUSE.AQM
/
PAUSE.ASM
Wrap
Assembly Source File
|
1985-09-15
|
2KB
|
66 lines
;
; PAUSE - Breakpoint for submit files
;
; Mark Anacker 07/25/83
;
; Equates
BOOT EQU 0000H
BDOS EQU 0005H
BELL EQU 7
LF EQU 10
CR EQU 13
; Code area
ORG 0100H
START MVI C,9 ; "PRINT STRING" function
LXI D,MSG1
CALL BDOS
MVI C,1 ; "CONSOLE INPUT" function
CALL BDOS
CPI 'A' ; Did we get a big A ?
JZ KILLIT ; Yup
CPI 'a' ; Did we get a small a ?
JZ KILLIT ; Yup
MVI C,9 ; Nope
LXI D,MSG2
CALL BDOS
JMP BOOT ; Warm-boot the system
KILLIT LXI D,FCB ; Point to our file name
MVI C,19 ; "DELETE FILE" function
CALL BDOS
MVI C,9
LXI D,MSG3
CALL BDOS
JMP BOOT ; And exit to CP/M
; Data area
FCB DB 1 ; Drive A:
DB '$$$ SUB' ; Submit processor file
DS 24 ; The rest of the FCB
MSG1 DB CR,LF,BELL
DB 'Press A to abort batch, any other key to resume $'
MSG2 DB CR,LF,LF,BELL
DB 'Batch processing continuing..',CR,LF,'$'
MSG3 DB CR,LF,LF,BELL
DB 'Batch processing ABORTED!',CR,LF,'$'
END START